Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-fix DrawBillboardPro to allow source of negative size (#3197) #3203

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Re-fix DrawBillboardPro to allow source of negative size (#3197) #3203

merged 1 commit into from
Jul 26, 2023

Conversation

bohonghuang
Copy link
Contributor

The root cause of issue #3197 seems to be that having only one dimension with a negative value in source or size causes the vertex order of the billboard to become clockwise, which cannot be rendered correctly when backface culling is enabled. This PR should allow source and size with any negative dimensions to be rendered correctly, and flipped as expected.

@raysan5 raysan5 merged commit 298f93e into raysan5:master Jul 26, 2023
@raysan5
Copy link
Owner

raysan5 commented Jul 26, 2023

@bohonghuang Nice! Thank you very much for this improvement! :)

@bohonghuang
Copy link
Contributor Author

My pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants